package ${projectPackage}.biz.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.feeling.admin.base.core.CoreContext;
import com.feeling.admin.base.service.impl.BaseQueryService;
import com.feeling.admin.common.constants.BankDict;
import ${projectPackage}.dao.${modelName}Dao;
import ${projectPackage}.entity.${modelName};
import ${projectPackage}.model.${modelName}InfoForm;

/**
 * @author ${authName}
 * @date ${createDate}
 */
public class ${modelName}InfoQueryServiceImpl extends BaseQueryService {
	
	@Autowired
	private ${modelName}Dao ${lowModelName}Dao;

	/* (non-Javadoc)
	 * @see com.feeling.admin.base.service.IQueryService#query(java.util.Map, com.feeling.admin.base.core.CoreContext)
	 */
	@Override
	public Map<String, ?> query(Map<String, ?> rq, CoreContext coreContext) {
		Map<String, Object> responseMap=new HashMap<String, Object>();
		${modelName}InfoForm infoForm = (${modelName}InfoForm) coreContext.getData(BankDict.REQUESTFORM);
		${modelName} entity = new ${modelName}();
		entity.setSeq(infoForm.getId());
		entity = ${lowModelName}Dao.queryByKey(entity);
		responseMap.put("info", entity);
		return responseMap;
	}

}
